import turtle as t
x, y = int(input()), int(input())
h = int(input())
length = 50
t.color('blue')
t.screensize(500, 500)

xcor1 = x
ycor1 = y
xcor2 = x + length * h
ycor2 = y - length * h


def proverka(xcor1, xcor2, ycor1, ycor2):
    if (not -500 <= xcor1 <= 500) or (not -500 <= xcor2 <= 500) or (not -500 <= ycor1 <= 500) or not(-500 <= ycor2 <= 500):
        print("Размер фигуры превышает максимальный размер")
        exit(0)


def print_shape(h):
    t.up()
    t.goto(x, y)
    t.down()
    t.begin_fill()
    t.fd(length * h)
    t.rt(90)
    t.fd(length * h)
    t.lt(90)
    t.fd(length * h)
    t.rt(90)
    t.fd(length * h * 2)
    t.rt(90)
    t.fd(length * h)
    t.rt(90)
    t.fd(length * h)
    t.lt(90)
    t.fd(length * h)
    t.rt(90)
    t.fd(length * h * 2)
    t.end_fill()
    t.hideturtle()


proverka(xcor1, xcor2, ycor1, ycor2)
print_shape(h)
t.mainloop()